﻿@model ProjectVerifyViewModel
@{
    Layout = null;
    ViewBag.Title = "驻地实验室考勤-首页";
    int j = 0;
}
<script type="text/javascript">
    var rykq_list3_zTree;
    var setting = {
        treeObjId: "rykq_list3_zTree",
        isSimpleData: true,              //数据是否采用简单 Array 格式，默认false
        treeNodeKey: "id",               //在isSimpleData格式下，当前节点id属性
        treeNodeParentKey: "pId",        //在isSimpleData格式下，当前节点的父节点id属性
        showLine: true,                  //是否显示节点间的连线
        checkable: false,                  //每个节点上是否显示 CheckBox
        callback: {
            nodeCreated: rykq_list3_zTree_creat    //这是节点生成时的回调函数
        }
    };
    function rykq_list3_zTree_creat(event, treeId, treeNode) {
        if (treeNode.pId != null) {
            $("#" + treeNode.tId + "_a").attr("rel", "rykq_list3");
        }
    }
    $(function () {
        $.getJSON(
           "/PersonnelLog/ProjectSegment/GetVeriJson?url=/PersonnelLog/PlmPersonnelAttendance/PersonnelAttendanceList",
           function (data) {
               rykq_list3_zTree = $("#rykq_list3_zTree").zTree(setting, data);
               rykq_list3_zTree.expandAll(true);
               $("#rykq_list3_zTree").initUI();
               $("#rykq_list3_zTree>li:eq(0)>ul>li:eq(0)>a>button").click();
           });
    });
</script>
<div class="page" style="border-top:1px solid #b8d0d6;" layouth="1">
    <div class="leftPanel">
        <ul id="rykq_list3_zTree" class="ztree"></ul>
    </div>

    <div id="rykq_list3" class="rightPanel">
        <!--#include virtual="list1.html" -->
    </div>
</div>
